package me.monster.grideaprocessor;

/**
 * @description
 * @author: Created jiangjiwei in 2020/9/30 11:14
 */
public class FileInfo {
    //    val sourcePath: String, val outputPath: String, val skip: Boolean, val extension: String
    private String sourcePath;
    private String outputPath;
    private boolean skip;
    private String extension;
    private boolean inRoot;

    public FileInfo(String sourcePath, String outputPath, boolean skip, String extension, boolean inRoot) {
        this.sourcePath = sourcePath;
        this.outputPath = outputPath;
        this.skip = skip;
        this.extension = extension;
        this.inRoot = inRoot;
    }

    public String getSourcePath() {
        return sourcePath == null ? "" : sourcePath;
    }

    public String getOutputPath() {
        return outputPath == null ? "" : outputPath;
    }

    public boolean isSkip() {
        return skip;
    }

    public String getExtension() {
        return extension == null ? "" : extension;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public void setOutputPath(String outputPath) {
        this.outputPath = outputPath;
    }

    public void setSkip(boolean skip) {
        this.skip = skip;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public boolean isInRoot() {
        return inRoot;
    }
}
